﻿<UserControl x:Class="Hisaab.Client.Modules.Core.Tag.View.TagEditor"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d" d:DesignHeight="168" d:DesignWidth="317" Padding="10">
    <StackPanel>
        <Label Style="{DynamicResource FieldLabel}">Tag Name</Label>
        <TextBox Text="{Binding Path=SelectedTag.Name, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" MinWidth="300" />

        <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
            <Button IsDefault="True" Width="75" Command="{Binding SaveCommand}">
                <Button.Content>
                    <StackPanel Orientation="Horizontal">
                        <Image Source="pack://application:,,,/Hisaab.Client.Common;component/Resources/Images/16/save.png" Width="16" Height="16" Margin="0 0 5 0" />
                        <TextBlock>Save</TextBlock>
                    </StackPanel>
                </Button.Content>
            </Button>
            <Button IsCancel="True" Width="75" Command="Close" >Cancel</Button>
        </StackPanel>
    </StackPanel>
</UserControl>